

<style type="text/css">
    a{text-decoration: none}
    .licenter{margin-bottom: 10px;text-align: center;}
    .licenter1{margin-bottom: 10px;text-align: center; height: 60px}
</style>


<div class="bao1">
    <div class="title_top_sup">Thông Tin Giải Trí</div>
    <div style="padding-top: 20px">
        <ul id="mycarousel2" class="jcarousel-skin-baba">
            <?php
            require_once(Yii::getPathOfAlias('webroot').'/protected/views/layouts/convertvn.php'); 
               if (isset(Yii::app()->request->cookies['idoanluat']->value)) {
                    $cityID = Yii::app()->request->cookies['idoanluat']->value;
                } else {
                    $cityID = 30;
                }
                $sql = 'SELECT p.id, p.logo,p.hovaten, d.name
                        FROM  `parner` p 
                        INNER JOIN `doanluatsu` d ON p.doanluatsu = d.id  
                        where p.flag=1 and p.doanluatsu="' . $cityID . '" order by p.id desc';

                $dbCommand = Yii::app()->db->createCommand($sql);
                $produc = $dbCommand->queryAll();
               
            $dem = count($produc);
            $lan = 0;
            $index = 0;
            if (!empty($produc)) {
                foreach ($produc as $item) {
                    $lan = $lan + 1;
                    $index = $index + 1;
                    if ($lan == 1) {
                        echo '<li>';
                    }
                    ?>


                    <div class="licenter1">
                      
            
                             <a href="<?php echo Yii::app()->request->baseUrl.'/luat-su/'.$item['id'] .'/'.  cv2urltitle($item['hovaten'])?>" title="<?php echo $item['hovaten'] ?>">
                                        <img src="<?php echo Yii::app()->request->baseUrl.'/upload/avata/'.$item['logo']; ?>" width="48" height="48"></a>
                      
                    </div>

                    <?php
                    if ($index == $dem) {
                        echo '</li>';
                    } elseif ($lan == 11) {
                        $lan = 0;
                        echo '</li>';
                    }
                }
            }
            ?>
             


        </ul>
    </div>
</div>
